<div id="carousel" class="carousel slide" data-ride="carousel">
    <ol class="carousel-indicators">
        {foreach name="ad_list" key="key" item="item"}
            <li data-target="#carousel" data-slide-to="{$key}" {if $key eq 0}class="active"{/if} ></li>
        {/foreach}
    </ol>
    <div class="carousel-inner">
        {foreach name="ad_list" key="key" item="item"}
        <div class="carousel-item {if $key eq 0}active{/if}">
            <a target="_blank" href="{$item.url}"><img class="d-block w-100" style="height: 660px" src="{$item.img}" alt=""></a>
        </div>
        {/foreach}
    </div>
</div>